<!-- 微信流量主配置 -->
<div class="tab-pane fade" id="t-ad">
    <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
        <div class="panel panel-default width50">
            <div class="panel-heading">插屏广告</div>
            <div class="panel-body">

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">首页:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-index_cp" class="form-control" name="row[index_cp]" type="text" {notempty name="$row.index_cp"}value="{$row.index_cp|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">发起投票页面:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-create_cp" class="form-control" name="row[create_cp]" type="text" {notempty name="$row.create_cp"}value="{$row.create_cp|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">投票模板:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-vote_temp" class="form-control" name="row[vote_temp]" type="text" {notempty name="$row.vote_temp"}value="{$row.vote_temp|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">个人中心:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-user_cp" class="form-control" name="row[user_cp]" type="text" {notempty name="$row.user_cp"}value="{$row.user_cp|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">创建投票后:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-active_cp" class="form-control" name="row[active_cp]" type="text" {notempty name="$row.active_cp"}value="{$row.active_cp|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">投票结果页:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-result_cp" class="form-control" name="row[result_cp]" type="text" {notempty name="$row.result_cp"}value="{$row.result_cp|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">投票主页:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-vote_index_cp" class="form-control" name="row[vote_index_cp]" type="text" {notempty name="$row.vote_index_cp"}value="{$row.vote_index_cp|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">作品页:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-vote_person_cp" class="form-control" name="row[vote_person_cp]" type="text" {notempty name="$row.vote_person_cp"}value="{$row.vote_person_cp|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">排行榜:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-vote_rank_cp" class="form-control" name="row[vote_rank_cp]" type="text" {notempty name="$row.vote_rank_cp"}value="{$row.vote_rank_cp|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">投票详情:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-vote_rule_cp" class="form-control" name="row[vote_rule_cp]" type="text" {notempty name="$row.vote_rule_cp"}value="{$row.vote_rule_cp|htmlentities}"{/notempty}>
                    </div>
                </div>
            </div>
        </div>

        <div class="panel panel-default width50">
            <div class="panel-heading">视频广告</div>
            <div class="panel-body">

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">个人中心:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-user_video" class="form-control" name="row[user_video]" type="text" {notempty name="$row.user_video"}value="{$row.user_video|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">发起投票页面:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-create_video" class="form-control" name="row[create_video]" type="text" {notempty name="$row.create_video"}value="{$row.create_video|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">投票结果页:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-vote_result_video" class="form-control" name="row[vote_result_video]" type="text" {notempty name="$row.vote_result_video"}value="{$row.vote_result_video|htmlentities}"{/notempty}>
                    </div>
                </div>
            </div>
        </div>

        <div class="panel panel-default width50">
            <div class="panel-heading">Banner广告</div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">首页:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-index_banner" class="form-control" name="row[index_banner]" type="text" {notempty name="$row.index_banner"}value="{$row.index_banner|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">投票结果页:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-vote_result_banner" class="form-control" name="row[vote_result_banner]" type="text" {notempty name="$row.vote_result_banner"}value="{$row.vote_result_banner|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">投票主页:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-vote_index" class="form-control" name="row[vote_index]" type="text" {notempty name="$row.vote_index"}value="{$row.vote_index|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">投票排行榜:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-vote_rank" class="form-control" name="row[vote_rank]" type="text" {notempty name="$row.vote_rank"}value="{$row.vote_rank|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">投票详情:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-vote_rule" class="form-control" name="row[vote_rule]" type="text" {notempty name="$row.vote_rule"}value="{$row.vote_rule|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">作品页:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-vote_person" class="form-control" name="row[vote_person]" type="text" {notempty name="$row.vote_person"}value="{$row.vote_person|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">投票报名页:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-vote_apply" class="form-control" name="row[vote_apply]" type="text" {notempty name="$row.vote_apply"}value="{$row.vote_apply|htmlentities}"{/notempty}>
                    </div>
                </div>

            </div>
        </div>

        <div class="panel panel-default width50">
            <div class="panel-heading">激励视频广告</div>
            <div class="panel-body">

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">激励视频ID:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-vote_jl" class="form-control" name="row[vote_jl]" type="text" {notempty name="$row.vote_jl"}value="{$row.vote_jl|htmlentities}"{/notempty}>
                    </div>
                </div>

            </div>
        </div>

        <div class="panel panel-default width50">
            <div class="panel-heading">原生模板广告</div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">首页是否开启:</label>
                    <div class="col-xs-12 col-sm-2">
                        <input  id="c-mbad_index_status" name="row[mbad_index_status]" type="hidden" {notempty name="$row.mbad_index_status"}value="{$row.mbad_index_status|htmlentities}"{else/}value="0"{/notempty}>
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-mbad_index_status" data-yes="1" data-no="0" >
                            <i class="fa fa-toggle-on text-success {empty name="row['mbad_index_status']"} fa-flip-horizontal text-gray {else /} {eq name="row['mbad_index_status']" value="0"}fa-flip-horizontal text-gray{/eq}{/empty} fa-2x"></i>
                        </a>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">广告位ID:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-mbad" class="form-control" name="row[mbad]" type="text" {notempty name="$row.mbad"}value="{$row.mbad|htmlentities}"{/notempty}>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">广告时长:</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="input-group">
                            <input id="c-mbad_time" class="form-control" name="row[mbad_time]" type="number" {notempty name="$row.mbad_time"}value="{$row.mbad_time|htmlentities}"{/notempty}>
                            <div class="input-group-addon">秒</div>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">跳转方式:</label>
                    <div class="col-xs-12 col-sm-8">
                        <select id="c-mbad_type" data-rule="required" class="form-control selectpicker" name="row[mbad_type]">
                            <option value="1" {notempty name="row.mbad_type"}{eq name="row.mbad_type" value="1"}selected=""{/eq}{/notempty}>自动跳转</option>
                            <option value="2" {notempty name="row.mbad_type"}{eq name="row.mbad_type" value="2"}selected=""{/eq}{/notempty}>手动跳转</option>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">多久显示1次:</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="input-group">
                            <input id="c-mbad_minute" class="form-control" name="row[mbad_minute]" type="number" {notempty name="$row.mbad_minute"}value="{$row.mbad_minute|htmlentities}"{/notempty}>
                            <div class="input-group-addon">分钟</div>
                        </div>
                    </div>
                </div>

            </div>
        </div>

        <input type="hidden" name="type" value="ad">
        <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            </div>
        </div>
    </form>
</div>
